package com.syt.test

class Test (var name: String){

    private var number: Int?= null

    /**
     * 次构造函数，也调用了主构造函数
     * @param number Int
     * @param name String
     * @constructor
     */
    constructor(number: Int, name: String): this(name) {
        this.number = number
    }

    /**
     * internal 模块级别访问权限，不能跨越module
     * 个人理解相当java 默认权限
     */
    internal fun getTest() {
        println("my name is $name")
    }

    override fun toString(): String {
        return "Test(name='$name', number=$number)"
    }


}